package cn.lingyangwl.agile.pay.constant;

import cn.lingyangwl.framework.tool.core.exception.BaseError;
import lombok.AllArgsConstructor;
import lombok.Getter;
import org.springframework.http.HttpStatus;

/**
 * @author shenguangyang
 */
@Getter
@AllArgsConstructor
public enum PayErrorEnum implements BaseError {
    MCH_APP_DISABLED("商户应用被禁用", 100000, HttpStatus.FORBIDDEN),
    CLOSE_ORDER("关单失败", 1000001, HttpStatus.BAD_REQUEST),
    MCH_APP_NOT_EXIST("商户应用不存在", -1, HttpStatus.NOT_FOUND),
    MCH_NOT_EXIST("商户不存在", -1, HttpStatus.NOT_FOUND),

    ;
    private final String message;
    private final Integer code;
    private final HttpStatus status;

}
